#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{
    int a=0,b=0,c=0,d=0,max=0;
    scanf("%d %d %d %d\n", &a, &b, &c, &d);
    max = a;
    if (b > max)
    {
        max = b;
    }
    if (c > max)
    {
        max = c;
    }
    if (d > max)
    {
        max = d;
    }
    printf("max=%d", max);
    return 0;
}